package com.github.xaidanwang.exception;

/**
 * @author wang yi fei
 * @date 2019/9/24 9:35
 */
public class BaseException extends RuntimeException{
	private int errCode;

	public int getErrCode() {
		return errCode;
	}

	public void setErrCode(int errCode) {
		this.errCode = errCode;
	}

	public BaseException() {

	}

	public BaseException(String message,int errCode) {
		super(message);
		this.errCode = errCode;
	}

	public BaseException(String message) {
		super(message);
	}

	public BaseException(String message, Throwable cause) {
		super(message, cause);
	}

	public BaseException(Throwable cause) {
		super(cause);
	}

	protected BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}
}
